package com.free.semantic.infrastruct.repository;

import com.free.semantic.model.conceptmodel.Model;
import com.free.semantic.model.conceptmodel.ModelCategory;

import java.util.List;

/**
 * 模型Repository接口
 */
public interface ModelRepository {
    Model findById(Long id);
    List<Model> findAll();
    List<Model> findByCategory(ModelCategory category);
    List<Model> findByPublisher(String publisher);
    Model findBySemanticNetworkId(Long semanticNetworkId);
    Long save(Model model);
    void update(Model model);
    void incrementUsageCount(Long id);
    void deleteById(Long id);
} 